#ifndef __FANYE_H__
#define __FANYE_H__
#include "cocos2d.h"
class RayStar;
class FanyeScene:public cocos2d::CCLayer
{
public:
	static cocos2d::CCScene *scene();
	virtual bool init();
	int current_l_;
	int current_r_;
	LAYER_CREATE_FUNC(FanyeScene);
	RayStar * epstar;
private:
	void nextflipPage(cocos2d::CCSprite * page_first,cocos2d::CCSprite *page_second);
	void lastflipPage(cocos2d::CCSprite * page_first,cocos2d::CCSprite *page_second);
	void nextPage(CCObject * sender);
	void lastPage(CCObject * sender);
	int current_page_;
	cocos2d::CCSprite * fanyepage[6];	
	virtual void onEnter();
	virtual void onExit();
	virtual bool ccTouchBegan(cocos2d::CCTouch *pTouch, cocos2d::CCEvent *pEvent);
};
#endif